http://www.astro.nwu.edu/lentz/mac/programming/home-prog.html